package lec10.pm;

import java.util.Calendar;
import java.util.Date;

public class DateDemo {
	
	public static void main(String[] args) {
		Date date=new Date();
		System.out.println(date);
		System.out.println(date.toGMTString());
		System.out.println(date.toLocaleString());
		Date nationalDay=new Date(49,9,1);
		System.out.println(nationalDay.toLocaleString());
		long differ=date.getTime()-nationalDay.getTime();
		long days=differ/1000/3600/24;
		System.out.println(days);
	//	Calendar calendar=Calendar.getInstance();
		
		
	}
}
